home *** CD-ROM | disk | FTP | other *** search
- Path: news.itd.umich.edu!stimpy!speng
- From: speng@stimpy.us.itd.umich.edu (Steve Palmer Peng)
- Newsgroups: comp.lang.c
- Subject: Kind of an annoying question...
- Date: 11 Mar 1996 00:19:36 GMT
- Organization: University of Michigan
- Message-ID: <4hvrio$c4k@lastactionhero.rs.itd.umich.edu>
- NNTP-Posting-Host: stimpy.us.itd.umich.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- I'm wondering, just what function in C allows me to enter a character
- from the keyboard, and it automatically executes the command I designate
- that character to. For instance, I have something like,
-
- printf("Enter Y or N:");
-
- and I want the command after the printf statement to wait for input
- from the keyboard, but once someone enters a Y or an N, the next line of
- code is executed, without hitting enter. Does anyone know how? It would
- be greatly appreciated if someone could help me out here...
-
- Steve
-
-
-